const typeRelateSort = {
  5: [1, 2, 3],
  6: [11, 12, 13]
}

function organizationTypeDisableAuthorityFilter(type, curType) {
  return !(type > curType)
}

function organizationSortDisableAuthorityFilter(sort, curType) {
  let disable = true
  if (!typeRelateSort[curType]) {
    return disable
  }
  disable = !(typeRelateSort[curType].findIndex(res => res === sort) >= 0)
  return disable
}

export default {
  organizationTypeDisableAuthorityFilter,
  organizationSortDisableAuthorityFilter
}
